package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 归属地参数
 * @author LikeAdmin
 */
@Data
@ApiModel("归属地更新参数")
public class LegalAreaCityUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "areaId参数必传且需大于0")
    @ApiModelProperty(value = "")
    private Long areaId;

    @NotNull(message = "areaName参数缺失")
    @ApiModelProperty(value = "市名")
    private String areaName;

    @NotNull(message = "areaType参数缺失")
    @ApiModelProperty(value = "")
    private Integer areaType;

    @NotNull(message = "parentId参数缺失")
    @ApiModelProperty(value = "")
    private Long parentId;

    @NotNull(message = "areaWord参数缺失")
    @ApiModelProperty(value = "拼音缩写")
    private String areaWord;

}
